export default {
	data() {
		return {
			page: 1,
			pageLength: 0,
			limit: 20,
			loadMoreText: '',
			totalPage: '',
			loadList: [],
			loadText: {
				loadmore: '轻轻上拉',
				loading: '努力加载中',
				nomore: '实在没有了'
			},
			loadStatus: 'loadmore'
		}
	},
	onShow() {
		console.log('11111111');
		// this.loadData();
		console.log('222222222');
	},
	onPullDownRefresh() {
		this.page = 1;
		this.loadData();
	},
	onReachBottom() {
		if (this.pageLength == this.limit) {
			this.page++;
			this.loadMoreText = 'loading';
			this.loadData();
		} else {
			this.loadMoreText = 'noMore';
		}
	}
}
